#!/bin/sh
nums="1 2 4 8 16 32"
problem="100"
solver="ga"
for i in ${nums}
do
	echo ${i}
	mkdir -p "../!res/${problem}/${i}"
	mpirun -machinefile ../../../logins/hosts.txt -np ${i} "../${solver}/mpi/Release/onemax_${solver}_mpi" "${solver}_${problem}.ini" > "../!res/${problem}/${i}/${solver}.mpi.txt"
done

 